<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/resources/include/taglib.jsp" %>
<!Docutype html>
<html>
<head>
    <title>用户登录</title>
    <link rel="stylesheet" href="${ctx}/resources/bootstrap/bootstrap.min.css"/>
    <link rel="stylesheet" href="${ctx}/resources/bootstrap/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="${ctx}/resources/css/user.css "/>
</head>
<body>
<div id="user-login">
    <div class="panel panel-primary">
        <div class="panel-heading">用户登录</div>
        <c:if test="${not empty error}">
            <span class="alert-warning">${error}</span>
        </c:if>
        <div class="panel-body">
            <form method="post" action="${ctx}/login">
                <div class="input-group col-md-8">
                    <span class="input-group-addon">用户名</span>
                    <input type="text" class="form-control" placeholder="请输入QQ号" name="username">
                </div>
                <div class="input-group col-md-8">
                    <span class="input-group-addon">密&nbsp;&emsp;码</span>
                    <input type="password" class="form-control" placeholder="请输入密码" name="userpassword">
                </div>
                <div class="input-group col-md-8" id="user-login-submit">
                    <button type="submit" class="btn btn-primary col-md-5" id="user-login-login">登录</button>
                    <a href="${ctx}/register">
                        <button type="button" class="btn btn-primary col-md-5" id="user-login-register">注册
                        </button>
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="/resources/jquery/jquery-1.11.0.min.js"></script>
<script src="/resources/js/user.js"></script>
</body>
</html>
